package com.zmj.service;

import com.zmj.entity.Price;
import com.zmj.mapper.PriceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PriceService {
    @Autowired
    PriceMapper priceMapper;

    public List<Price> getPrice(){
        List<Price> list = priceMapper.getPrice();
        if (list != null){
            return list;
        }else {
            return null;
        }
    }
}
